<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>vue的基本代码</title>
</head>
<body>

<div id="app">
  <!--<input type='checkbox' class='input-checkbox' v-model='checked' @click='checkedAll'>全选-->
  <input type="checkbox" v-model="check" @click="checkedAll">
</div>


<script src="../lib/vue-2.4.0.js"></script>
<script>

  var vue = new Vue({
    el: '#app',
    data: {
      check: false
    },
    methods:{
      checkedAll () {
        console.log(this.check)
        console.log(1)
      }
    }
  })
</script>
</body>
</html>
